package co.fitstart.admin.service;

import java.util.Date;
import java.util.List;

import com.demo2do.core.support.Page;

import co.fitstart.entity.user.distributor.DistributionRecord;
import co.fitstart.entity.user.distributor.DistributionRecordType;
import co.fitstart.entity.user.distributor.Distributor;

/**
 * 
 * @author mohanlan
 *
 */
public interface DistributionRecordService {
    
    /**
     * 
     * @param id
     * @return
     */
    public DistributionRecord load(Long id);
    
    /**
     * 
     * @param distributor
     * @param page
     * @return
     */
    public List<DistributionRecord> listByDistributor(Distributor distributor, Page page);
    
    /**
     * 
     * @param type
     * @param page
     * @return
     */
    public List<DistributionRecord> listByType(DistributionRecordType type, Page page);
    
    /**
     * 
     * @param type
     * @param beginTime
     * @param endTime
     * @return
     */
    public List<DistributionRecord> listByTime(DistributionRecordType type, Date beginTime, Date endTime);
}
